﻿<div class="cl pd-5 bg-1 bk-gray mb-10">
  <a class="btn btn-primary radius" onclick="layer_show('发送短信','__MODULE__/Message/send','500','400')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 发送短信</a>
  <span class="r">共有数据：<strong>{$rows}</strong> 条</span>
</div>
<table id="xctable" class="table table-border table-bordered table-hover table-bg table-sort">
  <thead>
    <tr class="text-c">
      <th width="30" id="me_id" onClick="tab_sort(this)"><div class="">编号</div></th>
      <th width="40" id="me_type" onClick="tab_sort(this)"><div class="">类型</div></th>
      <th width="150" id="me_title" onClick="tab_sort(this)"><div class="">短信标题</div></th>
      <th width="250" id="me_body" onClick="tab_sort(this)"><div class="">短信内容</div></th>
      <th width="100" id="me_remark" onClick="tab_sort(this)"><div class="">会员回复</div></th>
      <th width="60" id="me_suid" onClick="tab_sort(this)"><div class="">收件人</div></th>
      <th width="120" id="me_atime" onClick="tab_sort(this)"><div class="">发送时间</div></th>
      <th width="40">操作</th>
    </tr>
  </thead>
  <volist name="list" id="vo" >
  <tr class="text-c">
    <td>{$i}</td>
    <td>{$mtype[$vo[me_type]]}</td>
    <td>{$vo.me_title}</td>
    <td style="text-align:left">{$vo.me_body}</td>
    <td style="text-align:left">{$vo.me_remark|default="<font color=#f00>暂未回复</font>"}</td>
    <td>{$vo.me_suid}</td>
    <td>{$vo.me_atime|date='Y-m-d H:i',###}</td>
    <td>
      <a onClick="update_state('message','me_id={$vo.me_id}','me_fstate','2','删除');" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
    </td>
  </tr>
  </volist>
</table>
{$page}<!-- 分页-->
<script type="text/javascript">
$(".pagination a").click(function(){
	var page = $(this).data('p');
	ajax_get_table('myfrom1',page);
});
</script>